.class public abstract Lcn/cheln/explorer/cpnt/adapter/FileAdapter;
.super Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;


# instance fields
.field private a:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V
    .locals 0

    invoke-direct {p0, p1, p2}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;-><init>(Landroid/content/Context;Lcn/cheln/support/adapter/d;)V

    return-void
.end method


# virtual methods
.method public abstract a(I)Lcn/cheln/explorer/beans/FileInfo;
.end method

.method protected a(Ljava/lang/Object;ILandroid/view/View;)V
    .locals 2

    invoke-super {p0, p1, p2, p3}, Lcn/cheln/explorer/cpnt/adapter/ThumbnailAdapter;->a(Ljava/lang/Object;ILandroid/view/View;)V

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    check-cast p1, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->c()Ljava/lang/Boolean;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->b:Landroid/content/Context;

    const/high16 v1, 0x433a

    invoke-static {v0, v1}, Lcn/cheln/support/app/a;->a(Landroid/content/Context;F)I

    move-result v0

    :goto_1
    iput v0, p0, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->a:I

    const v0, 0x7f080053

    invoke-virtual {p3, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iget v1, p0, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->a:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setMaxWidth(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->b:Landroid/content/Context;

    const/high16 v1, 0x4382

    invoke-static {v0, v1}, Lcn/cheln/support/app/a;->a(Landroid/content/Context;F)I

    move-result v0

    goto :goto_1
.end method

.method public final b(Lcn/cheln/explorer/beans/FileInfo;)I
    .locals 3

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {p0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->getCount()I

    move-result v1

    if-ge v0, v1, :cond_1

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0}, Lcn/cheln/explorer/cpnt/adapter/FileAdapter;->a(I)Lcn/cheln/explorer/beans/FileInfo;

    move-result-object v2

    invoke-virtual {v2}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    :goto_1
    return v0

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 v0, -0x1

    goto :goto_1
.end method
